const getObjKey = obj => {
	const arr= [];
	for(const key in obj) {
		arr.push(key);
	}

	return arr;
}

const getKeyVal = (arr, key) => arr.map(item => item[key]);

module.exports =  { getObjKey, getKeyVal }